Skip to main content

Waveform Experimental

The Waveform component displays a Sample.

export component Waveform {
@property sample: Sample
@property channel: Int = 0
@property range: SampleRange? = nil
@property color: Color = 0xFF000000
}
import { Waveform } from audio_components
import { load_sample, library_path } from kontakt

export var main = Waveform(sample: load_sample(library_path.appending("Samples").appending("my_sample.wav"))!,
)

This component was introduced as experimental feature in Kontakt 8.10.

Constructor

sample: Sample Required

The sample to display.

See Sample.

channel: Int = 0

The channel of the sample to display.

range: SampleRange? = nil

The range of samples to display. If set to nil, the entire sample is displayed.

See SampleRange.

color: Color = 0xFF000000

The fill color.

Layout Behavior

Fills the available area.